//
//  SettingCell.m
//  91upIphone
//
//  Created by jiangshao on 16/2/16.
//  Copyright © 2016年 huayu. All rights reserved.
//

#import "SettingCell.h"

@implementation SettingCell

@synthesize titleLabel,fortuneValueLabel,unreadmsgView,topLine,bottomLine,bottomLineLeadingSpace,topLineHeight,bottomLineHeight,imageRightArrow;

- (void)awakeFromNib {
    // Initialization code
    
    self.selectedBackgroundView = [[UIView alloc] initWithFrame:self.frame];
    
    
    [titleLabel setFont:[UIFont systemFontOfSize:15]];
    
    [fortuneValueLabel setFont:[UIFont systemFontOfSize:14]];
    
    unreadmsgView.layer.masksToBounds = YES;
    unreadmsgView.layer.cornerRadius = 5.0f;
    topLineHeight.constant=0.5;
    bottomLineHeight.constant=0.5;
    
}


-(void)setContent:(SettingModel *)settingModel{
    titleLabel.text=settingModel.title;
    fortuneValueLabel.text=@"";

    
    topLine.hidden=YES;
    bottomLine.hidden=NO;
    bottomLineLeadingSpace.constant=16;
    
    if(_indexPath.row==0){
        topLine.hidden=NO;
    }
//    if(_indexPath.row==_datas.count-1){
//        bottomLineLeadingSpace.constant=0;
//    }
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    
    // Configure the view for the selected state
}



@end
